from Data_cleaning.format_conversion import Format_conversion
from Data_cleaning.imputation_missingvalues import Missing_value_handling
from Data_cleaning.imputation_mutlier import Outlier_handling

class CycleDataProcessor:
    def __init__(self, data, cycle_index):
        self.data = data
        self.cycle_index = cycle_index

    def Calling(self):
        #格式转换
        format_conversion = Format_conversion(self.data)
        self.data = format_conversion.conversion()

        #缺失值处理
        missing_value_handling = Missing_value_handling(self.data)
        self.data = missing_value_handling.hadling_dalete()

        #异常值处理
        outlier_handling = Outlier_handling(self.data, self.cycle_index)
        self.data = outlier_handling.handling()
        return self.data